//
//  ChangeTimeVC.h
//  Wallets Manager
//
//  Created by Nguyen Chi Cong on 10/28/12.
//  Copyright (c) 2012 BKHN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SVSegmentedControl.h"
#import "TapkuLibrary.h"

typedef enum {
	Jan = 1, 
	Feb,
    Match,
    April,
    May,
    June,
    July,
    August,
    Sep,
    Oct,
    Nov,
    Dec,
} MonthType;

typedef enum {
	Quarter1 = 1, 
    Quarter2,
    Quarter3,
    Quarter4,
	
} QuarterType;

@interface ChangeTimeVC : UIViewController<TKCalendarMonthViewDelegate, TKCalendarMonthViewDataSource, UIActionSheetDelegate>

@property (strong,nonatomic) TKCalendarMonthView *monthViewCalendar;
@property (retain, nonatomic) UIActionSheet *pickerViewPopup;

@property (weak, nonatomic) IBOutlet UIImageView *imvBorder;
@property (weak, nonatomic) IBOutlet UIView *viewMonthMode;
@property (weak, nonatomic) IBOutlet UIView *viewQuarterMode;
@property (weak, nonatomic) IBOutlet UIView *viewCustomMode;
@property (weak, nonatomic) IBOutlet UIView *viewContainer;
@property (weak, nonatomic) IBOutlet UITextField *txtMMYear;
@property (weak, nonatomic) IBOutlet UITextField *txtMMMonth;
@property (weak, nonatomic) IBOutlet UITextField *txtQMYear;
@property (weak, nonatomic) IBOutlet UITextField *txtQMQuarter;
@property (weak, nonatomic) IBOutlet UITextField *txtCMFrom;
@property (weak, nonatomic) IBOutlet UITextField *txtCMTo;

- (void) createDatePickerView;
- (void) popUpRefreshFrame;
- (void) setType:(NSInteger) timeType;
- (void) setFromDate: (NSDate *) date;
- (void) setToDate: (NSDate *) date;
- (void)segmentedControlChangedValue:(SVSegmentedControl*)segmentedControl;

@end
